package com.qiaofang.service;

import com.qiaofang.dto.DepartmentDTO;
import com.qiaofang.entity.Company;
import com.qiaofang.entity.Department;
import com.qiaofang.vo.DepartmentVO;

import java.util.List;

public interface DepartmentService {

    /**
     * 新增顶级部门
     *
     * @param company
     */
    void addTopDepartment(Company company);

    void addDepartment(DepartmentDTO departmentDTO);

    /**
     * 公司名字变更 需要修改顶级部门名称
     *
     * @param company
     * @param partnerInfoId
     */
    void updateTopDepartment(Company company, String partnerInfoId);

    DepartmentVO getDepartmentByDTO(DepartmentDTO departmentDTO);

    List<Department> listTopDepartment(List<Long> companyIds);

}
